
import { regex } from "vuelidate/lib/validators/common";


export var phoneReg = regex("phoneNumber", /^1(3|4|5|6|7|8|9)\d{9}$/);


export var nameReg = regex("name", /^[\u4E00-\u9FA5]{2,6}$/);


export var idReg = regex("idCard", /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/);


export var nickNameReg = regex("nickName", /^[a-zA-Z0-9_-]{4,16}$/);
